package com.dk.jwzx.reptile.week;

import com.dk.jwzx.reptile.ReptileBase;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class CquptWeekReptile extends ReptileBase {

    @Override
    public Integer doCrawling(String html) {
        Document document= Jsoup.parse(html);
        Element head=document.getElementById("head");
        Elements elements=head.getElementsByTag("li");
        Element li=elements.get(1);
        String str=li.html();
        String week=str.split("第")[1].split("周")[0];
        return Integer.parseInt(week);
    }
}
